<?php

class Form_Admin_Meeting extends Form_Custom_General {

    public function init() {

        $url_id = $this->createElement('hidden', 'url_id')
                ->addFilters(array(
                    new Zend_Filter_StringTrim(),
                ))
                ->setAttribs(Array("size" => "60"));
        $this->addElement($url_id);

        
        $url_name = $this->createElement('text', 'url_name')
                ->setRequired(TRUE)
                ->addValidator('NotEmpty', true, array('messages' => array('isEmpty' => 'Meeting name should not be blank.')))
                ->addFilters(array(
                    new Zend_Filter_StringTrim(),
                    new Zend_Filter_StringToLower()
                ))
                ->setAttribs(Array('class' => "span12", "placeholder" => "Name"));
        $this->addElement($url_name);


        $url_hashtag = $this->createElement('text', 'url_hashtag')
                ->setRequired(TRUE)
                ->addValidator('NotEmpty', true, array('messages' => array('isEmpty' => 'Meeting Custom URL should not be blank.')))
                ->addFilters(array(
                    new Zend_Filter_StringTrim(),
                    new Zend_Filter_StringToLower()
                ))
                ->setAttribs(Array('class' => "span12", "placeholder" => "Custom URL"));
        $this->addElement($url_hashtag);



        $url_askpage_url = $this->createElement('textarea', 'url_askpage_url')
                ->setRequired(TRUE)
                ->addValidator('NotEmpty', true, array('messages' => array('isEmpty' => 'Ask url should not be blank.')))
                ->addFilters(array(
                    new Zend_Filter_StringTrim()
                ))
                ->setAttribs(Array('class' => 'span12', "rows" => "4", "readonly" => true));
        $this->addElement($url_askpage_url);
        
        $url_presentatioin_url = $this->createElement('textarea', 'url_presentatioin_url')
                ->setRequired(TRUE)
                ->addValidator('NotEmpty', true, array('messages' => array('isEmpty' => 'Presentation url should not be blank.')))
                ->addFilters(array(
                    new Zend_Filter_StringTrim()
                ))
                ->setAttribs(Array('class' => 'span12', "rows" => "4", "readonly" => true));
        $this->addElement($url_presentatioin_url);
        
        $url_status = $this->createElement('select', 'url_status')
                ->setRequired(TRUE)
                ->addFilters(array(
                    new Zend_Filter_StringTrim(),
                    new Zend_Filter_StringToLower()
                ))
                ->addValidator('NotEmpty', true, array('messages' => array('isEmpty' => 'Please select status.')));
        $this->addElement($url_status);
        
        
        
        
    }

}